import { http } from "@/utils/request";

export const starPay = (data)=>{
    return http({
        method:'POST',
        url:"my/orders/create",
        data,
       header:{
        Authorization:uni.getStorageSync('token')
       }
    })
}
export const checkPayStatus = (data)=>{
    return http({
        method:'POST',
        url:"my/orders/chkOrder",
        data,
       
    })
}
export const payHistory = (data)=>{
    return http({
        method:'GET',
        url:"my/orders/all",
        data,
       
    })
}
export const getPayParams = (data)=>{
    return http({
        method:'POST',
        url:"my/orders/req_unifiedorder",
        data,
        header:{
            Authorization:uni.getStorageSync('token')
        }
       
    })
}